<?php
require 'Admin/Model/Model.php';
	class IndexModel extends Model{
		function __Construct(){
			parent::__Construct();
		}
		function getAdminLogin($data){
			/*$data = array(
			array('uname'=>'jason','gender'=>'男'),
			array('uname'=>'jack','gender'=>'男')
			);*/
			//var_dump($data);
			
			//$sql = "select * from admins where adminname='".$data['adminname']."' and password='".$data['psw']."'";
	        $sql = "select * from admins where adminname='".$data['adminname']."' and psw='".$data['psw']."'";
			//echo $sql;
		    $d= $this->conn->query($sql);
		    //var_dump($d);
			return $d;
		}
		
	}
?>